class AddCommentsAndError < ActiveRecord::Migration
  def self.up
    add_column :ovule_counts, :comment, :string
    add_column :open_seed_sets, :comment, :string
    add_column :hand_self_seed_sets, :comment, :string
    add_column :hand_cross_seed_sets, :comment, :string
    add_column :pollen_counts, :comment, :string
    add_column :flower_widths, :comment, :string
    add_column :seed_masses, :comment, :string
    add_column :seed_volumes, :comment, :string
    add_column :display_sizes, :comment, :string
    add_column :ovule_counts, :error, :float
    add_column :open_seed_sets, :error, :float
    add_column :hand_self_seed_sets, :error, :float
    add_column :hand_cross_seed_sets, :error, :float
    add_column :pollen_counts, :error, :float
    add_column :flower_widths, :error, :float
    add_column :seed_masses, :error, :float
    add_column :seed_volumes, :error, :float
    add_column :display_sizes, :error, :float
  end

  def self.down
    remove_column :ovule_counts, :comment
    remove_column :open_seed_sets, :comment
    remove_column :hand_self_seed_sets, :comment
    remove_column :hand_cross_seed_sets, :comment
    remove_column :pollen_counts, :comment
    remove_column :flower_widths, :comment
    remove_column :seed_masses, :comment
    remove_column :seed_volumes, :comment
    remove_column :display_sizes, :comment
    remove_column :ovule_counts, :error
    remove_column :open_seed_sets, :error
    remove_column :hand_self_seed_sets, :error
    remove_column :hand_cross_seed_sets, :error
    remove_column :pollen_counts, :error
    remove_column :flower_widths, :error
    remove_column :seed_masses, :error
    remove_column :seed_volumes, :error
    remove_column :display_sizes, :error
  end
end
